package commands;

import IA.InformationAggregator;

/**
 *
 * @author Pop
 */
public class CmdAdjustPrepTime extends Command {
    String prepStr;
    public CmdAdjustPrepTime(InformationAggregator ia, String prepStr){
        super(ia);
        this.prepStr = prepStr;
    }
    public Object execute(){
        Integer prepTime, index;
        String delimiter = "/";
        String[] ary;
        
        ary = prepStr.split(delimiter);
        prepTime = Integer.parseInt(ary[0]);
        index = Integer.parseInt(ary[1]);
        ia.getMenu().adjustPrepTime(index, prepTime);
        return null;
    }
}
